<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <script src="angular.min.js"></script>
    <script src="js/base.js"></script>
    <script src="js/controller.js"></script>
    <link rel="stylesheet" href="static/css/css.css">
</head>
<body ng-app="app" ng-controller="userController" ng-init="getList()">
    <div align="center">
        <h1>用户列表</h1>
    </div>

    <button ng-click="toAdd()">添加</button>

    <table>
        <tr>
            <th>姓名</th>
            <th>密码</th>
        </tr>
        <tr ng-repeat="u in list">
            <td>{{u.username}}</td>
            <td>{{u.password}}</td>
        </tr>
    </table>
</body>
</html>